
import axios from 'axios';

const API_BASE_URL = 'http://114.132.177.63'; // 替换为您的后端API基础URL

const api = axios.create({
    baseURL: API_BASE_URL,
    timeout: 200000, // 设置请求超时时间
});

const getQPEData = async (params) => {
    try {
        const response = await api.get('/weather/get_QPE_data/', { params });
        return response.data;
    } catch (error) {
        throw error;
    }
};

export { getQPEData };
